package com.xiaoxx.controller.sys;


import com.xiaoxx.common.result.R;
import com.xiaoxx.model.vo.sys.ToolJvmInfoVO;
import com.xiaoxx.service.ToolServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  @author wangsong
 */
@RestController
@RequestMapping("api/sys/jvm")
@Api(value = "JvmController", tags = "base--sys--jvm信息获取")
public class JvmController {


    @Autowired
    private ToolServer toolServer;

    @GetMapping(value = "/jvmInfo")
    @ApiOperation(value = "获取系统的jvm信息")
    public R<ToolJvmInfoVO> jvmInfo() {
        return R.success(toolServer.jvmInfo());
    }
}
